commonlibsse_ng\re\t\TESForm/
flags.rs1#[commonlibsse_ng_derive_internal::to_bitflags]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
3#[repr(u32)]
4pub enum RecordFlag {
5 Destructible = 1 << 0,
6 Master = 1 << 0,
7 Unlocked = 1 << 0,
8
9 Altered = 1 << 1,
10 Playable = 1 << 2,
11 Initialized = 1 << 3,
12 Nonoccluder = 1 << 4,
13 Deleted = 1 << 5,
14
15 BorderRegion = 1 << 6,
16 GlobalConstant = 1 << 6,
17 HasSpokenFlag = 1 << 6,
18 Known = 1 << 6,
19 InPlaceableWater = 1 << 6,
20
21 FireOff = 1 << 7,
22 MustUpdate = 1 << 8,
23 OnLocalMap = 1 << 9,
24 Persistent = 1 << 10,
25
26 Disabled = 1 << 11,
27 UsedAsMovingPlatform = 1 << 11,
28
29 Ignored = 1 << 12,
30
31 Empty = 1 << 13,
32 ResetDestruction = 1 << 13,
33
34 Temporary = 1 << 14,
35 MustBeVisibleDistant = 1 << 15,
36 RandomAnim = 1 << 16,
37 Dangerous = 1 << 17,
38 HasCurrents = 1 << 19,
39 IgnoreFriendlyHits = 1 << 20,
40 StillLoading = 1 << 21,
41 FormRetainsID = 1 << 22,
42 Destroyed = 1 << 23,
43
44 Unk24 = 1 << 24,
45
46 NoAIAcquire = 1 << 25,
47 Obstacle = 1 << 25,
48
49 VATSTargetOverride = 1 << 26,
50 DisableFade = 1 << 27,
51
52 ReflectedByAutoWater = 1 << 28,
53 ShowOnWorldMap = 1 << 28,
54
55 ChildCanUse = 1 << 2,
56}
57
58#[commonlibsse_ng_derive_internal::to_bitflags]
59#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
60#[repr(u16)]
61pub enum InGameFormFlag {
62 #[default]
63 None = 0,
64 WantsDelete = 1 << 0,
65 ForcedPersistent = 1 << 1,
66 NoFavorAllowed = 1 << 4,
67 IsSkyObject = 1 << 5,
68 RefOriginalPersistent = 1 << 6,
69 RefPermanentlyDeleted = 1 << 7,
70}